<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>插件开发</title>
    <script src="./../vue/vue.js"></script>
</head>
<body>
    <div id="app">
        <div v-haa>11231</div>

    </div>

    <script>
        let MyPlugin = {}
        MyPlugin.install = function(Vue, options){
            console.log("aaa")
            // Vue.directive("haa",{
            //     inject: function(el, binding){
            //         console.log("hahah")
            //     }
            // })
        }

        Vue.use(MyPlugin)

        let vm = new Vue({
            el: "#app"
        })

    </script>
</body>
</html>